<#assign base=request.contextPath />
<#assign oneLabel="ERP管理">

<#assign twoLabel="客户管理">
<#assign twoUrl=base+"/customer/list">

<#assign leafLabel="客户详情">
<!DOCTYPE html>
<html lang="en">
<head>
	<link rel="stylesheet" href="${base}/static/assets/css/chosen.css" />
	<#include "/commons/headImport.ftl">
</head>
<body>
<#include "/commons/header.ftl">
<form class="form-horizontal" name="formName" method="post">
<#include "/commons/hiddenField.ftl">
<@spring.formHiddenInput "payCount.customerDO.id"/>
<div class="row">
	<div class="col-xs-12">
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right">
				公司名称:
			</label>
			<div class="col-sm-4">
				<div class="help-block col-xs-12 col-sm-reset inline">${(payCount.customerDO.companyName)!'--'}</div>
			</div>
		</div>
		<div class="space-4"></div>
			
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right">
				姓名:
			</label>
			<div class="col-sm-4">
				<div class="help-block col-xs-12 col-sm-reset inline">${(payCount.customerDO.fullName)!'--'}</div>
			</div>
		</div>
		<div class="space-4"></div>
							
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right">
				联系电话:
			</label>
			<div class="col-sm-4">
				<div class="help-block col-xs-12 col-sm-reset inline">${(payCount.customerDO.tel)!'--'}</div>
			</div>
		</div>
		<div class="space-4"></div>
	
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right">
				公司地址:
			</label>
			<div class="col-sm-4">
				<div class="help-block col-xs-12 col-sm-reset inline">${(payCount.customerDO.companyAddress)!'--'}</div>
			</div>
		</div>
		<div class="space-4"></div>

		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right">
				状态:
			</label>
			<div class="col-sm-4">
				<div class="help-block col-xs-12 col-sm-reset inline">${(statusMap['${(payCount.customerDO.status)!0}'])!}</div>
			</div>
		</div>
		<div class="space-4"></div>

		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right">
				合同总金额:
			</label>
			<div class="col-sm-4">
				<div class="help-block col-xs-12 col-sm-reset inline">
					${((payCount.contractDO.totalAmount/100.0)?string.currency)!0.0}
				</div>
			</div>
		</div>
		<div class="space-4"></div>

		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right">
				已收金额:
			</label>
			<div class="col-sm-4">
				<div class="help-block col-xs-12 col-sm-reset inline">
					${((payCount.contractDO.confirmAmount/100.0)?string.currency)!0.0}
				</div>
			</div>
		</div>
		<div class="space-4"></div>

		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right">
				未收金额:
			</label>
			<div class="col-sm-4">
				<div class="help-block col-xs-12 col-sm-reset inline">
					${(((payCount.contractDO.totalAmount-payCount.contractDO.confirmAmount)/100.0)?string.currency)!0.0}
				</div>
			</div>
		</div>
		<div class="space-4"></div>

		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right">
				备注:
			</label>
			<div class="col-sm-4">
				<@spring.formTextarea "payCount.customerDO.remark" "class='col-xs-10 col-sm-8' readonly='true'"/>
			</div>
		</div>
		<div class="space-4"></div>
	</div><!-- /.col -->
</div><!-- /.row -->
</form>
<div class="hr hr32 hr-dotted"></div>
<div class="clearfix">
	<div class="col-md-offset-2 col-md-9">
		<button class="btn btn-xs return_class" type="button" url="${base}/customer/list">
			<i class="icon-reply bigger-110"></i>返回
		</button>
	</div>
</div>

<#include "/commons/footer.ftl">
<script src="${base}/static/assets/js/chosen.jquery.min.js"></script>
<script>
jQuery(function($) {
	$(".chosen-select").chosen();
});
</script>
</body>
</html>
